// const Controller = require('egg').Controller;


// class HomeController extends Controller {
//     async index() {
//         this.ctx.body = 'hello world';
//     }
// }


// module.exports = HomeController;




exports.index=async ctx=>{
    console.log(ctx.app.locals);
    ctx.locals.b=2;
    console.log(ctx.locals);
    
    ctx.logger.warn('debug info');
    ctx.body = 'hello world';
}